import { Role } from "@/api/service/user/types";

export const showForm = ref(false);
const formObj: Role = {
  roleId: "",
  roleName: "",
  roleKey: "",
  roleSort: 0,
  menuIds: [],
  dataScope: "",
  menuCheckStrictly: true,
  deptCheckStrictly: true,
  status: "0",
  createBy: "",
  createTime: "",
  admin: true,
  updateBy: "",
  updateTime: "",
  params: {},
  remark: "",
  flag: false
};
export const form = ref<Role>({
  ...formObj
});

export const resetForm = () => {
  form.value = {
    ...formObj
  };
};
